<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/metals/bom/metalsbom_edit.js"></script>
<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
<script type="text/javascript">
$(function(){
	jeDate({
		dateCell:"#beginTime",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, 
		isClear:false,
		minDate:"2014-09-19 00:00:00"
	});
	jeDate({
		dateCell:"#endTime",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, 
		isClear:false,
		minDate:"2014-09-19 00:00:00"
	});
	jeDate({
		dateCell:"#confirmTime",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, 
		isClear:false,
		minDate:"2014-09-19 00:00:00"
	});
})
</script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/equip/repairapp_editEntity.shtml">
		<input type="hidden" class="form-control checkacc" value="${equipfile.id}"
			name="repairappFormMap.id" id="id">
		<section class="panel panel-default">
			<div class="form-group">
					<label class="col-sm-3 control-label">部门：</label>
					<div class="col-sm-9">
						<select class="form-control" name="repairappFormMap.equipmentCategoryId">
							<c:forEach var="key" items="${categoryFormMap}" >
								<option value="${key.id }" ${key.id==equipfile.equipmentCategoryId ? 'selected' :'' }>${key.categoryName }</option>	
							</c:forEach>
						</select>
						</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
			
				<div class="form-group">
					<label class="col-sm-3 control-label">档案种类：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" 
							placeholder="请输入档案种类" name="repairappFormMap.fileId" id="workcenter_no" value="${equipfile.fileId}" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修原因：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" 
							placeholder="请输入维修原因" name="repairappFormMap.reason" id="workcenter_no" value="${equipfile.reason}" />
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修申请：</label>
					<div class="col-sm-9">
					<select class="form-control" name="repairappFormMap.sendOut">
							<option  <c:if test="${equipfile.sendOut eq null}"> SELECTED</c:if>>--请选择--</option>
							<option value="1" <c:if test="${equipfile.sendOut eq 1}"> SELECTED</c:if>>本厂</option>
							<option value="2" <c:if test="${equipfile.sendOut eq 2}"> SELECTED</c:if>>发外</option>
							
						</select>
						
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修开始时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入维修开始时间"
							id="beginTime" name="repairappFormMap.beginTime"  value="${equipfile.beginTime }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修结束时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入维修结束时间"
							id="endTime" name="repairappFormMap.endTime"  value="${equipfile.endTime }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修员：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入维修员"
							name="repairappFormMap.repairPeople"  value="${equipfile.repairPeople }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
					<label class="col-sm-3 control-label">维修结果：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入维修结果"
							name="repairappFormMap.repairResult"  value="${equipfile.repairResult }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修结果确认：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入维修结果确认"
							name="repairappFormMap.resultConfirm"  value="${equipfile.resultConfirm }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
						
				<div class="form-group">
					<label class="col-sm-3 control-label">确认时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入确认时间"
							id="confirmTime" name="repairappFormMap.confirmTime"  value="${equipfile.confirmTime }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">维修费用：</label>
					<div class="col-sm-9">
						<input type="number" min="0" class="form-control" placeholder="请输入维修费用"
							name="repairappFormMap.cost"  value="${equipfile.cost }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">备注：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" placeholder="请输入备注"
							name="repairappFormMap.remark"  value="${equipfile.remark }">
					</div>
				</div>		
				<div class="line line-dashed line-lg pull-in"></div>
						
			<div class="form-group">
					<label class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-9">
						<select class="form-control" name="repairappFormMap.status">
							<option value="1" <c:if test="${equipfile.status eq 1}"> SELECTED</c:if>>正常</option>
							<option value="2" <c:if test="${equipfile.status eq 2}"> SELECTED</c:if>>删除</option>
							
						</select>
			</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
	</section>
	</form>
</body>
</html>